import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import {xtPush, xtReplace, xtGo, xtSwitchTab} from "@/util/router.js";

Vue.mixin({
    data() {
        return {
            param: null
        }
    },
    onLoad(info) {
        if (info.param) {
            this.param = JSON.parse(info.param)
        }
    }
})

Vue.config.productionTip = false

Vue.prototype.xtPush = xtPush
Vue.prototype.xtReplace = xtReplace
Vue.prototype.xtGo = xtGo
Vue.prototype.xtSwitchTab = xtSwitchTab

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
